<template>
  <el-tabs v-model="activeName" class="schedule-info" @tab-click="handleClick">
    <el-tab-pane label="日常巡检" name="polling">
      <polling-com></polling-com>
    </el-tab-pane>
    <el-tab-pane label="随工情况" name="follow">
      <follow-com></follow-com>
    </el-tab-pane>
  </el-tabs>
</template>

<script setup lang="ts">
import { ref } from "vue";
import type { TabsPaneContext } from "element-plus";
import FollowCom from "./FollowCom.vue";
import PollingCom from "./PollingCom.vue";

//TODO: 管理角色->何人值班，组员->何时值班

const activeName = ref("polling");

const handleClick = (tab: TabsPaneContext, event: Event) => {
  console.log(tab, event);
};
</script>

<style lang="scss" scoped>
.schedule-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 35px;
  .el-tabs__content {
    height: 100% !important;
    display: flex !important;
    padding: 32px;
    color: #6b778c;
    font-size: 32px;
    font-weight: 600;
    flex-grow: 1;
  }
}
</style>
